Contents | < Browse | Browse >
chab_wipe.yafa

Now, for the first time, we will see two animations on the screen. CHA will
be played in the background and CHB will be moved from the top left corner
to the middle of the screen and zoomed to halve of their size.

{wftut:halve_size/results/chab_wipe.yafa}

Variable:      breite
Points:         2
Nr. 1:          0,    0        ... start-width 0
Nr. 2:         60,   88  [176] ... end-width 88 (176/2)
Interpolation: linear

Variable:      hoehe
Points:         2
Nr. 1:          0,    0        ... start-height 0
Nr. 2:         60,   72  [144] ... end-height 72 (144/2)
Interpolation: linear

Variable:      left
Points:         2
Nr. 1:          0,    0       ... start left
Nr. 2:         60,   44  [88] ... end in the middle (coordinate of the 
                                  left side of the animation)
Interpolation: linear

Variable:      top
Points:         2
Nr. 1:          0,    0       ... start at the top
Nr. 2:         60,   36  [72] ... end in the middle
Interpolation: linear

Now we add the following effects

{ADD LOADIMAGE}
{ADD SCALE}
{ADD COMPOSE}

We make the following selections:

Loadimage:

{SEQUENCE wftut:halve_size/frames/chB/pic}
{OUTPUT Temp1}
{REPEAT AT 60}

This command loads the file called 'pic.xxxx' with xxxx as the picture of
the animation which is generated. So if the processor generates the first
picture of the anim LOADIMAGE will load pic.0001. For pic 60 of the anim
pic.0060 will be loaded.
With repeat you choose which is the last picture. Afterwards LOADIMAGE will
restart the index with 1.
We use the buffer Temp1 for loading. With the 8 Buffers and the Strem we
can combine 9 animations in an very easy way!


Scale:

{INPUT Temp1}   ... input picture
{OUTPUT Temp1}  ... Output picture
{WIDTH breite}  ... width of the picture
{HEIGHT hoehe}  ... height of the picture
{TYPE pixels}   ... Values in Pixel
{ASPECT ignore} ... Aspect will be ignored

The temp-picture from the CHB anim will be scaled to the size we set in the
variables "breite" and "hoehe".

Compose:

{BACKGROUND Stream}  ... backgrund pictures from animation CHA
{FOREGROUND Temp1}   ... foregrund pictures from animation CHB
{DESTINATION Stream} ... output to the Stream
{ALPHA none}         ... Alpha chanal
{LEFT left}          ... left Position
{TOP top}            ... top oben
{MIX 100}            ... Mix = 100 ... you see only the anim in front!

The background of the animation CHB is black. We want the background of the
CHB anim to be masked out, so we see the anim CHA in the background.

{CENTREX off}        ... pics will NOT be centred
{CENTREY off}        ... pics will NOT be centred

{GENLOCK SingleColor}  ... you can see through one color
{ALL RGB-VALUES  0}    ... we choose the black color!

Ready, steady, convert!

Let`s move to  Part 6 .